package com.shenmazong.serverwebpoem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shenmazong.serverwebpoem.pojo.TbRecordLogin;
import com.shenmazong.serverwebpoem.pojo.TbRecordStone;
import com.shenmazong.serverwebpoem.pojo.TbUser;

/**
 * @author 田不平
 * @project server-web-poem
 * @date 2020/3/24 10:09 AM
 * http://www.shenmazong.com
 */
public interface TbUserService {
    void add(TbUser user);
    void del(Integer id);
    void set(TbUser user);
    TbUser getUserById(Integer id);
    TbUser getUserByName(String name);

    void addRecordLogin(TbRecordLogin recordLogin);
    TbRecordLogin getUserRecordByDate(Integer userId, Integer loginDate);
    void addRecordStoneById(TbUser user, Long scores, String reason);
    IPage<TbRecordStone> getPageStoneByUserId(Integer userid, Integer pageCurrent, Integer pageSize);
}
